File: /var/www/html/orbidirectory.com/resources/views/admin/website_testimonial/index.blade.php
@extends('adminlte::page')
@section('title', 'ORBI Dashboard')
@section('content_header')
<h1>Website Testimonial</h1>
{{-- <small>Manage Website Testimonial</small> --}}
@stop
@section('content')
<div class="card card-dark">
<div class="card-header">
<h3 class="card-title"></h3>
<div class="card-tools">
<a href="{{ route('website.testimonial.add', ['id' => $website_id]) }}" class="btn btn-dark"><i
class="fas fa-plus"></i> Add Testimonial</a>
</div>
</div>
<div class="card-body">
<form method="POST" id="search-form" role="form">
<div class="form-group">
<label for="search">Search</label>
<x-adminlte-input class="form-control" id="search_keyword" name="search_keyword"
placeholder="Enter Name" />
</div>
</form>
<table class="table table-bordered testimonial-datatable">
<thead>
<tr>
<th>Website</th>
<th>Name</th>
<th>Description</th>
<th>Designation</th>
<th>company</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
@stop
@section('js')
<script type="text/javascript">
$(function() {
var dataTable = $('.testimonial-datatable').DataTable({
processing: true,
serverSide: true,
pageLength: 10,
searching: false,
ajax: {
url: "{{ route('website.testimonial', $website_id) }}",
data: function(data) {
data.search_keyword = $('#search_keyword').val();
}
},
columns: [{
data: 'website',
name: 'Website'
},
{
data: 'name',
name: 'Name'
},
{
data: 'description',
name: 'Description'
},
{
data: 'designation',
name: 'Designation'
},
{
data: 'company',
name: 'Company'
},
{
data: 'action',
name: 'action',
},
]
});
$('#search_keyword').keyup(function() {
dataTable.draw();
});
});
</script>
@stop